<template>
	<view class="">
		<view class="header">
			<view class="basj">
				<image @click="gobacks" src="/static/dazi/bak.png" mode=""></image>
				<text class="title">公告</text>
			</view>
		</view>
		<view class="lisnh">
			<view class="onpan" v-for="(item,index) in 3" :key="index"  @click="godetail" >
				<view class="lefyts">
					<view class="topna">
						今天是三月第一天，恰逢农历二月初二“龙抬头”。这一天民间有“剃龙头”的习俗，寓意辞旧迎新带来好兆头。祝你抬头见喜鸿运当头
					</view>
					<view class="tinams">
						2025/2/5 16:22:02
					</view>
				</view>
				<image class="lofhs" src="/static/acti/2.webp" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			godetail(){
			uni.navigateTo({
				url:'/pages/acnoticy/detail'
			})	
			},
			gobacks() {

				// #ifdef H5
				history.back();
				// #endif

				// #ifdef APP
				uni.navigateBack()
				// #endif

			},
		}
	}
</script>

<style lang="scss">
	.lisnh{
		padding: 60rpx 0;
		
	}
	.onpan {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 40rpx 0;
		border-bottom: 1px solid #F8EFF9;
		&:last-of-type{
			border:  none !important;
		}
	}

	.lofhs {
		width: 160rpx;
		height: 160rpx;
		border-radius: 24rpx;
	}

	.lefyts {
		width: 70%;
		height: 160rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;

		.topna {

			overflow: hidden;

			text-overflow: ellipsis;

			display: -webkit-box;

			-webkit-line-clamp: 2;

			-webkit-box-orient: vertical;


			width: 100%;
			line-height: 1.5;
			color: #2A222F;
			font-size: 30rpx;

		}

		.tinams {
			color: #837487;
			font-size: 24rpx;
		}
	}

	.basj {
		display: flex;
		align-items: center;
		height: 60rpx;

		image {
			width: 48rpx;
			height: 48rpx;
			vertical-align: middle;
		}

		.title {
			margin-left: 10rpx;
			color: #2A222F;
			font-size: 40rpx;
		}
	}

	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 60rpx;

		letter-spacing: 2rpx;
		/* 字母间距 */
		font-weight: 600;
		// border: #dddddd solid 1px;

		.btn-side {
			position: absolute;
			line-height: 60rpx;
			font-size: 28rpx;
			cursor: pointer;

			&.right {
				right: 30rpx;
			}
		}
	}

	page {
		background-color: #ffffff;
		padding: 30rpx;
	}
</style>